import axios from '@/libs/request/axios'
// 获取附加项目数据 多条件
export const getExtrasListData = (params) => {
    return axios.request({
        url: '/product/extras/getExtrasList',
        data: params,
        method: 'post'
    })
}
// 获取附加项目数据排除已经添加到方案的 多条件
export const getProjectData = (params) => {
    return axios.request({
        url: '/product/extras/getProjectData',
        data: params,
        method: 'post'
    })
}
// 获取父类编号
export const getSelectFatherNo = (params) => {
    return axios.request({
        url: '/product/extras/getSelectFatherNo',
        data: params,
        method: 'post'
    })
}
// 附加项目启用
export const enableExtras = (ids, params) => {
    return axios.request({
        url: `/product/extras/enableExtras/${ids}`,
        data: params,
        method: 'post'
    })
}
// 附加项目禁用
export const disableExtras = (ids, params) => {
    return axios.request({
        url: `/product/extras/disableExtras/${ids}`,
        data: params,
        method: 'post'
    })
}
// 添加附加项目
export const addExtras = (params) => {
    return axios.request({
        url: '/product/extras/addExtras',
        data: params,
        method: 'post'
    })
}
// 删除附加项目
export const deleteExtras = (id, params) => {
    return axios.request({
        url: `/product/extras/deleteExtras/${id}`,
        data: params,
        method: 'delete'
    })
}
